package com.probox.common.entity.mapper.customer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.probox.common.entity.domain.customer.CustomerFundStore;
import com.probox.common.entity.vo.customer.CustomerFundStoreVo;
import com.probox.common.entity.vo.customer.StoreFundItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户资金Mapper接口
 *
 * @author usoft
 * @date 2022-10-06
 */
public interface CustomerFundStoreMapper extends BaseMapper<CustomerFundStore> {


    /**
     * 查询客户各个门店的资金信息
     *
     * @param customerUid
     * @return
     */
    List<CustomerFundStoreVo> listFundStore(@Param("customerUid") Long customerUid);
    Integer listFundStoreTotal(@Param("customerUid") Long customerUid);

    /**
     * 查询门店的资金列表
     * @param customerId
     * @return
     */
    List<StoreFundItem> getStoreFundByCustomerId(Long customerId);

    /**
     * 统计各门店的资金列表
     * @return
     */
    public List<CustomerFundStoreVo> sumStoreFundList(Long storeId);

    public List<CustomerFundStore> customerStoreFundList(Long storeId);
}
